Page 62 - 2629_Devagiri_C-7
P. 62

THE <BODY> TAG
                  The <BODY> tag is a container tag. It defines the section of the HTML document that is visible in

                  the web browser. It contains all other tags that define the content and presentation elements,
                  such as images, text, lists, tables and links for navigating between web pages.




                         CREATING AND SAVING AN HTML DOCUMENT


                  To create your own web page, you need a text editor. You can use any text editor, such as Notepad,
                  Sublime Text, Vim or VS Code and view the page in a web browser, like Microsoft Edge, Google
                  Chrome or Mozilla Firefox. Notepad is the default text editor in Windows 11.
                  To create and save an HTML document, follow the given steps:






                                                                                             2    Click on the File menu
                                                                                             from the Menu bar.



                                                     1    Open the Notepad text
                                                    editor and write the HTML
                                                    code.

                                                                                3    Click on the Save option
                                                                                from the drop-down menu.


                  The Save as dialog box appears on the screen.
                                                                            4    Choose the location where
                                                                           you want to save the document.
                            SHORT SIGN


                         To save the current file
                         with a different name:
                             Ctrl + Shift + S






                      5    Type the desired name for your
                     document in the File name text box,
                         followed by the .html extension.


                                                                     6    Click on the Save button.



                  The document will be saved with the given name.




                   60
                        Premium Edition-VII
   57   58   59   60   61   62   63   64   65   66   67